public class Question {
	public String[] Question;
	public String[][] Choices;
	public String[] CorrectAnswer;
	public String[] Hint;
	public int[] AssociatedPoints;
	private final int MAXCHOICE = 4;
	
	public void setQuestions() {
		Question = new String[] {"What is the radius of the earth", "What is the color of the moon"};
	}
	
	public void setAnswer() {
		CorrectAnswer = new String[] {"64000km", "White"};
	}
	
	public void setChoices() {
		int l = Question.length;
		String[][]  Choice = new String[l][MAXCHOICE];
		Choice[0][0] = "1km";
		Choice[0][1] = "42";
		Choice[0][2] = "6400km";
		Choice[0][3] = "64000km";
		Choice[1][0] = "Blue";
		Choice[1][1] = "Red";
		Choice[1][2] = "White";
		Choice[1][3] = "Brown";
		Choices = Choice;
	}
	
	public void setHint() {
		Hint = new String[] {"It is very large.", "It is like snow."};
	}
	
	public void setAssociatedPoints() {
		AssociatedPoints = new int[] {5, 3};
	}
	
	public boolean CheckAnswer(int numQuestion, String userAnswer) {
		if(CorrectAnswer[numQuestion].compareTo(userAnswer) == 0) {
			return true;
		}
		else {
			return false;
		}
	}
	
	public int QuestionPoints(int numQuestion) {
		return AssociatedPoints[numQuestion];
	}
	
	public String ShowHint(int numQuestion) {
		return Hint[numQuestion];
	}
	
	// This is optional, I re-read the Interview, so for the time being we leave it blank for the moment.
	public void ShuffleAnswers() {
		
	}
}
